home *** CD-ROM | disk | FTP | other *** search
/ Capitol Hill / Capitol Hill (1993)(The Software Toolworks).iso / support / shardcst.mmm / meta.txt < prev   
Encoding:
Text File  |  1993-09-19  |  17.1 KB  |  66 lines

  1. Name
  2. ----
  3. Shared Cast+CAPITOL HILL:special mac files for windows:
  4.  
  5. Strings
  6. ------
  7. Macromedia Director
  8.  
  9. stxt
  10. ----
  11. --¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥
  12. Factory Array
  13.   --┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ┬Ñ
  14. Factory aSpcAlert
  15. method mNew
  16.   instance myList, numOfItems ,myState
  17.   me(mSetActive,FALSE)
  18. end mNew
  19.  
  20. -- *******************************************************
  21. -- mBuildAlertList: builds and inits a list of messages for
  22. -- the Alert items. These are phone, vote and mail Alerts
  23. method mBuildAlertList maxItems
  24.   set numOfItems = 1
  25.   put LinkedItem(mNew ,numOfItems) into myList
  26.   put myList into prevItem
  27.   
  28.   repeat while (numOfItems < maxItems)
  29.     set numOfItems = numOfItems +1
  30.     put LinkedItem(mNew ,numOfItems) into nextItem
  31.     nextItem(mInsertAfter,prevItem)
  32.     put nextitem into prevItem
  33.   end repeat
  34. end mBuildAlertList
  35.  
  36.  
  37. -- ******************************************************
  38. -- mGetNextMsg: pulls a message from the list, randomly
  39. -- and returns it to the caller. Deletes the message from the
  40. -- list so that it will not be pulled again
  41. method mGetNextMsg
  42.   if (numOfItems > 0) then
  43.     put random(numOfItems) into thisItem
  44.     set count = 1
  45.     put myList into foundItem
  46.     repeat while (count < thisItem)
  47.       put foundItem(mGetNext) into foundItem
  48.       set count = count + 1
  49.     end repeat
  50.     set numOfItems = numOfItems - 1
  51.     put foundItem(mGetContent) into thisContent
  52.     if (foundItem = myList) then
  53.       -- points to the frist item and therefore needs special treatment
  54.       put myList(mGetNext) into myList
  55.     end if
  56.     --me(mSetActive FALSE)
  57.     foundItem(mRemoveItem)
  58.     foundItem(mDispose)
  59.     return thisContent
  60.   else
  61.     return -1
  62.   end if
  63. end mGetNextMsg
  64.  
  65. -- *********************************************************
  66. -- mGetNumOfMsg: This is a simple method that returns the 
  67. -- total number of messages currently in the list
  68. -- The list is un-effected
  69. method mGetNumOfMsg
  70.   return numOfItems
  71. end mGetNumOfMsg
  72.  
  73. -- ********************************************************
  74. -- mSetActive: This method sets the instance var isActive to
  75. -- the state specified by the parameter aState
  76. -- The list is un-effected
  77. method mSetActive isActive
  78.   set myState = isActive
  79. end mSetActive
  80.  
  81. -- **********************************************************
  82. -- mGetActive: This method returns the instance var isActive
  83. -- 
  84. -- The list is un-effected
  85. method mGetActive
  86.   return myState
  87. end mGetActive
  88.  
  89. --¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥
  90. Factory LinkedItem 
  91. method mNew theContent
  92.   instance prevItem, nextItem , myContent
  93.   set myContent = theContent
  94.   set prevItem = me
  95.   set nextItem = me
  96. end mNew
  97.  
  98. -- *********************************************************
  99. -- mInsertAfter: This method inserts an item into the linked list
  100. -- after the list item aItem
  101. -- eg: instert aNEWITEM after aitem2 in the list aItem1->aItem2->aItem3
  102. --     = aItem1->aItem2->aNEWITEM->aItem3
  103. --------------------------------------------------------------------------
  104. method mInsertAfter aItem
  105.   -- We need to break the link between aItem and it's nexts
  106.   -- and then make it point to us
  107.   me(mSetNext,aItem(mGetNext))
  108.   aItem(mSetNext,me)
  109.   -- Then we want to make aItem our prev
  110.   -- and then make our nextItem point to us
  111.   me(mSetPrev,aItem)
  112.   nextItem(mSetPrev,me)
  113. end mInsertAfter
  114.  
  115. -- **********************************************************
  116. -- mGetNext: This method returns the item that me is linked to next
  117. --------------------------------------------------------------------------
  118. method mGetNext
  119.   return nextItem
  120. end mGetNext
  121.  
  122. -- ***********************************************************
  123. -- mSetNext: This method makes the item that me is next linked to  = aitem
  124. --------------------------------------------------------------------------
  125. method mSetNext aItem
  126.   set nextItem = aItem
  127. end mGetNext
  128.  
  129. -- ************************************************************
  130. -- mGetPrev: This method returns the item that me is linked to prev
  131. --------------------------------------------------------------------------
  132. method mGetPrev
  133.   return prevItem
  134. end mGetPrev
  135.  
  136. -- *************************************************************
  137. -- mSetPrev:  This method makes the item that me is prev linked to  = aitem
  138. --------------------------------------------------------------------------
  139. method mSetPrev aItem
  140.   set prevItem = aItem
  141. end mSetPrev
  142.  
  143. -- ************************************************************
  144. -- mRemoveItem:  Remove me from the list, form a link between the items 
  145. -- pointed to by me.next and me.prev
  146. --------------------------------------------------------------------------
  147. method mRemoveItem
  148.   -- Break the link with the previous and next items
  149.   prevItem(mSetNext,nextItem)
  150.   nextItem(mSetPrev,prevItem)
  151. end mRemoveItem
  152.  
  153. -- ******************************************************
  154. -- mGetContent:  Return the content of this container
  155. --------------------------------------------------------------------------
  156. method mGetContent
  157.   return myContent
  158. end mGetContent
  159.  
  160. --¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥
  161. Factory mailBox
  162. method  mNew
  163. end mNew
  164.  
  165. -- ******************************************************
  166. -- mGetMail: Gets a letter (disc Text file) and puts the text
  167. -- into the myMailBox (text cast member).
  168. --------------------------------------------------------------------------
  169. method mGetMail letter , myMailBox
  170.   global repfirst,repname,repstate
  171.   put "CAPITOL HILL:Support:Mail:L"&letter into theFile
  172.   put FileIO(mNew,"read",theFile) into myFile
  173.   put "" into aChar
  174.   put "" into myLetter
  175.   repeat while not(aChar contains "%")
  176.     --showLocals
  177.     set myLetter = myLetter & aChar
  178.     put myFile(mReadLine) into aChar
  179.     
  180.   end repeat
  181.   put myLetter into field myMailBox
  182.   if  ( myLetter contains "(Rep)") then
  183.       put offset("(",myLetter) into repmarker
  184.        if (repname <> "" ) then
  185.    
  186.            delete char repmarker of myLetter
  187.            delete char repmarker of myLetter
  188.            delete char repmarker of myLetter
  189.            delete char repmarker of myLetter
  190.            delete char repmarker of myLetter
  191.            put repfirst&&repname before char repmarker of myLetter
  192.  
  193.            put myLetter into field myMailBox
  194.        end if
  195.    end if
  196.    if  ( myLetter contains "(Rep)") then
  197.       put offset("(",myLetter) into repmarker
  198.        if (repname <> "" ) then
  199.    
  200.            delete char repmarker of myLetter
  201.            delete char repmarker of myLetter
  202.            delete char repmarker of myLetter
  203.            delete char repmarker of myLetter
  204.            delete char repmarker of myLetter
  205.            put repname before char repmarker of myLetter
  206.  
  207.            put myLetter into field myMailBox
  208.        end if
  209.    end if
  210.    
  211.   set the textAlign of field myMailBox to "left"
  212.   set the textSize of field myMailBox to 10
  213.   set the textStyle of field myMailBox to "plain"
  214.   myFile(mDispose)
  215. end mGetMail
  216.  
  217. Factory textReader
  218. method mNew
  219.   instance myTextCast1, myTextCast2, myTextCast3,myTextCast4,myTextCast5,├é
  220.            myTC1FontSz,myTC2FontSz,myTC3FontSz,myTC4FontSz,myTC5FontSz ,├é
  221.            myTC1FontStly,myTC2FontStly,myTC3FontStly,myTC4FontStly,myTC5FontStly,├é
  222.            myTC1FontJst,myTC2FontJst,myTC3FontJst,myTC4FontJst,myTC5FontJst,├é
  223.            myBkStr1, myBkStr2, myBkStr3,myBkStr4,myBkStr5
  224.   
  225. end mNew
  226.  
  227. method mClearTxtCast
  228.   
  229. end mClearTxtCast
  230.  
  231. method mSetTxtCast  aTC1, aTC2 , aTC3,aTC4,aTC5
  232.     set myTextCast1 = aTC1
  233.     set myTextCast2 = aTC2
  234.     set myTextCast3 = aTC3
  235.    set myTextCast4 = aTC4
  236.    set myTextCast5 = aTC5
  237.   end mSetTxtCast
  238.  
  239. method mFormat  whichTC, aFontSz, aFontStly, aFontJst
  240.   if (whichTC = myTextCast1) then
  241.     put aFontSz into myTC1FontSz
  242.     put aFontStly into myTC1FontStly
  243.     put aFontJst into myTC1FontJst
  244.   else
  245.     if (whichTC = myTextCast2) then
  246.       put aFontSz into myTC2FontSz
  247.       put aFontStly into myTC2FontStly
  248.       put aFontJst into myTC2FontJst
  249.     else
  250.       if (whichTC = myTextCast3) then
  251.         put aFontSz into myTC3FontSz
  252.         put aFontStly into myTC3FontStly
  253.         put aFontJst into myTC3FontJst
  254.       else
  255.         if (whichTC = myTextCast4) then
  256.           put aFontSz into myTC4FontSz
  257.           put aFontStly into myTC4FontStly
  258.           put aFontJst into myTC4FontJst
  259.         else
  260.           if (whichTC = myTextCast5) then
  261.             put aFontSz into myTC5FontSz
  262.             put aFontStly into myTC5FontStly
  263.             put aFontJst into myTC5FontJst
  264.           end if
  265.         end if
  266.       end if
  267.     end if
  268.   end if
  269. end mFormat
  270.  
  271. method mSetBkStrs  aBkStr1 , aBkStr2, aBkStr3,aBkStr4,aBkStr5
  272.   put aBkStr1 into myBkStr1
  273.   put aBkStr2 into myBkStr2
  274.   put aBkStr3 into myBkStr3
  275.   put aBkStr4 into myBkStr4
  276.   put aBkStr5 into myBkStr5
  277. end mSetBkStrs
  278.  
  279. method mGetTxt  fileName
  280.   
  281.   put "CAPITOL HILL:Support:"&fileName into theFile
  282.   put FileIO(mNew,"read",theFile) into myFile
  283.   -- first get the header
  284.   if objectp(myFile) then
  285.     put "" into aChar
  286.     put "" into myHeader
  287.     
  288.     if (myTextCast1 <> 0) then
  289.       put me(mGetTxtBlk myFile , myTextCast1 , myBkStr1,myBkStr5)  into theEnd
  290.       set the textAlign of field myTextCast1 to myTC1FontJst
  291.       set the textSize of field myTextCast1 to myTC1FontSz
  292.       set the textStyle of field myTextCast1 to myTC1FontStly
  293.   
  294.       if  ((myTextCast2 <> 0) and not(theEnd)) then
  295.         put me(mGetTxtBlk  myFile , myTextCast2 , myBkStr2,myBkStr5) into theEnd
  296.         set the textAlign of field myTextCast2 to myTC2FontJst
  297.         set the textSize of field myTextCast2 to myTC2FontSz
  298.         set the textStyle of field myTextCast2 to myTC2FontStly
  299.        
  300.         if  ((myTextCast3 <> 0) and not(theEnd)) then
  301.           put me(mGetTxtBlk  myFile , myTextCast3 , myBkStr3,myBkStr5)  into theEnd
  302.           set the textAlign of field myTextCast3 to myTC3FontJst
  303.           set the textSize of field myTextCast3 to myTC3FontSz
  304.           set the textStyle of field myTextCast3 to myTC3FontStly
  305.            
  306.           if ((myTextCast4 <> 0) and not(theEnd) ) then
  307.             put me(mGetTxtBlk myFile , myTextCast4 , myBkStr4,myBkStr5) into theEnd
  308.             set the textAlign of field myTextCast4 to myTC4FontJst
  309.             set the textSize of field myTextCast4 to myTC4FontSz
  310.             set the textStyle of field myTextCast4 to myTC4FontStly
  311.            
  312.             if  ((myTextCast5 <> 0) and not(theEnd) ) then
  313.               put me(mGetTxtBlk myFile , myTextCast5 , myBkStr5,myBkStr5) into theEnd
  314.               set the textAlign of field myTextCast5 to myTC5FontJst
  315.               set the textSize of field myTextCast5 to myTC5FontSz
  316.               set the textStyle of field myTextCast5 to myTC5FontStly
  317.             end if
  318.           end if
  319.         end if
  320.       end if
  321.     end if
  322.   else
  323.     put "File Error,File Missing" into cast aHeaderCast 
  324.     put "If you copied the program to a different media,├é
  325.          You must copy all files and folders" into cast aBodyCast 
  326.   end if
  327.   myFile(mDispose)
  328. end mGetTxt
  329.  
  330. method mGetTxtBlk myFile , aTxtCast , aBKpt,EOFBkpt
  331.   put "" into aChar
  332.   put "" into myBody
  333.   repeat while not(aChar contains aBKpt)
  334.     set myBody = myBody & aChar
  335.     put myFile(mReadLine) into aChar
  336.   end repeat
  337.   put myBody into cast aTxtCast
  338.   if (aChar contains EOFBkpt) then 
  339.       return TRUE
  340.   else 
  341.       return FALSE
  342.   end if
  343. end mGetTxtBlk
  344. 2
  345. free bytes =
  346. H. Res. 396: FURTHER DISCLOSURE OF HOUSE BANK ABUSES
  347. To disclose the name of any member of the House who wrote a check exceeding his balance at the House Bank.
  348.  
  349. The resolution would publicly name each member who wrote checks with insufficient funds and the number of checks written. The intent of the resolution is to let voters know which Representatives broke banking policy.
  350. Yea: 426    Nay: 1
  351. ---------------------------------------------------------------
  352. --This is the main AlertIcon handler. It will randomly select
  353. -- one of the message Icons and place it on the display
  354. -- If a list is empty then we will do nothing
  355. -- 6/11/93:L.Tietz
  356. -- Rev 1, 11/15/93, change to single alert active at at time only.
  357. -------------------------------------------------------------
  358. macro AlertIcon
  359.   global myVAlertList, myPAlertList ,myMAlertList,mailBox,alertnum
  360.   
  361.   --if all are currently on screen then there is nothing to do, so exit
  362.   if ( myVAlertList(mGetActive) or ├é
  363.        myPAlertList(mGetActive) or ├é
  364.        myMAlertList(mGetActive) ) then
  365.     starttimer
  366.     exit
  367.   end if
  368.   -- Next determine what icons (P,V,or M) to display
  369.   -- by the way, if a given list is used up (empty) then do nothing
  370.   set x = alertnum
  371.   if ((x = 1) and (myVAlertList(mGetNumOfMsg) > 0)) then 
  372.     Vote
  373.     set AIActive = TRUE
  374.     myVAlertList(mSetActive,TRUE)
  375.   else
  376.     if ((x = 2)  and (myPAlertList(mGetNumOfMsg) > 0)) then 
  377.       Phone
  378.       set AIActive = TRUE
  379.       myPAlertList(mSetActive,TRUE)
  380.     else
  381.       if ((x = 3) and (myMAlertList(mGetNumOfMsg) > 0)) then 
  382.         Mail
  383.         set AIActive = TRUE
  384.         myMAlertList(mSetActive,TRUE)
  385.       end if
  386.     end if
  387.   end if
  388.   set alertnum=alertnum+1
  389.   if alertnum=4 then set alertnum=1
  390. end AlertIcon
  391.  
  392.  
  393. macro Vote
  394.   global myVAlertList, myPAlertList ,myMAlertList,mailBox
  395.   
  396.   set the locV of sprite 22=437
  397.   set the locH of sprite 22=85
  398.   updatestage
  399.   starttimer
  400. end Vote
  401.  
  402. macro Phone
  403.   global myVAlertList, myPAlertList ,myMAlertList,mailBox
  404.   
  405.   set the locV of sprite 23=437
  406.   set the locH of sprite 23=85
  407.   updatestage
  408.   starttimer
  409. end Phone
  410.  
  411. macro Mail
  412.   global myVAlertList, myPAlertList ,myMAlertList,mailBox
  413.   
  414.   set the locV of sprite 24=437
  415.   set the locH of sprite 24=85
  416.   updatestage
  417.   starttimer
  418. end Mail
  419.  
  420. macro votehandler
  421.   global myVAlertList, myPAlertList ,myMAlertList,mailBox,fnum
  422.   puppetsound 0
  423.   
  424.   set fnum=the frame
  425.   set the locV of sprite 22=10000
  426.   set the type of sprite 22=0
  427.   set the type of sprite 23=0
  428.   set the type of sprite 24=0  
  429.   
  430.   play "alertvote"
  431.   set the type of sprite 22=1
  432.   set the type of sprite 23=1
  433.   set the type of sprite 24=1
  434.   --starttimer
  435.   
  436.   myVAlertList(mSetActive,FALSE)
  437. end votehandler
  438.  
  439. macro Phonehandler
  440.   global myVAlertList, myPAlertList ,myMAlertList,mailBox,fnum
  441.   puppetsound 0
  442.   
  443.   set fnum=the frame
  444.   set the locV of sprite 23=10000
  445.   set the type of sprite 22=0
  446.   set the type of sprite 23=0
  447.   set the type of sprite 24=0 
  448.   
  449.   play "alertphone"
  450.   set the type of sprite 22=1
  451.   set the type of sprite 23=1
  452.   set the type of sprite 24=1
  453.   --starttimer
  454.   myPAlertList(mSetActive,FALSE)  
  455. end Phonehandler
  456.  
  457. macro mailhandler
  458.   global myVAlertList, myPAlertList ,myMAlertList,mailBox,fnum
  459.   puppetsound 0
  460.   
  461.   set fnum=the frame
  462.   set the locV of sprite 24=10000
  463.   set the type of sprite 22=0
  464.   set the type of sprite 23=0
  465.   set the type of sprite 24=0 
  466.   
  467.   play "alertmail"
  468.   set the type of sprite 22=1
  469.   set the type of sprite 23=1
  470.   set the type of sprite 24=1
  471.   --starttimer
  472.   myMAlertList(mSetActive,FALSE)
  473. end mailhandler
  474.  
  475. macro backup fname
  476.   puppetsound 0
  477.   puppettransition 23
  478.   --go label(fname)+1
  479.   go fname
  480. end backup
  481. Representative
  482. YOU KNOW
  483.  
  484. WHERE
  485.  
  486. vwci
  487. ----
  488. 1476: PH1CAPITOL HILL:Support:PHONE:PH1AIFF
  489. 1477: PH2CAPITOL HILL:Support:PHONE:PH2AIFF
  490. 1478: PH3CAPITOL HILL:Support:PHONE:PH3AIFF
  491. 1479: PH4CAPITOL HILL:Support:PHONE:PH4AIFF
  492. 1480: PH5CAPITOL HILL:Support:PHONE:PH5AIFF
  493. 1481: PH6CAPITOL HILL:Support:PHONE:PH6AIFF
  494. 1482: PH7CAPITOL HILL:Support:PHONE:PH7AIFF
  495. 1483: PH8CAPITOL HILL:Support:PHONE:PH8AIFF
  496. 1484: PH9CAPITOL HILL:Support:PHONE:PH9AIFF
  497. 1485: PH10CAPITOL HILL:Support:PHONE:PH10AIFF
  498. 1486: PH11CAPITOL HILL:Support:PHONE:PH11AIFF
  499. 1487: PH12CAPITOL HILL:Support:PHONE:PH12AIFF
  500. 1488: PH13CAPITOL HILL:Support:PHONE:PH13AIFF
  501. 1489: PH14CAPITOL HILL:Support:PHONE:PH14AIFF
  502. 1490: PH15CAPITOL HILL:Support:PHONE:PH15AIFF
  503. 1491: PH16CAPITOL HILL:Support:PHONE:PH16AIFF
  504. 1492: PH17CAPITOL HILL:Support:PHONE:PH17AIFF
  505. 1498: on mouseUp
  506.   
  507. end mouseUp
  508. 1501: loop
  509. 1502: PH18CAPITOL HILL:Support:PHONE:PH18AIFF
  510. 1505: Chill2
  511. 1508:  goback.PICT
  512. 1509:     doortitle
  513. 1510: on mouseUp
  514.   global backFrame
  515.   put the frame into backFrame
  516. end mouseUp ALERT1.PICT
  517. 1511: on mouseUp
  518.   global backFrame
  519.   put the frame into backFrame
  520. end mouseUp ALERT3.PICT
  521. 1512: on mouseUp
  522.   global backFrame
  523.   put the frame into backFrame
  524. end mouseUp ALERT2.PICT
  525. 1513: click
  526. 1514: macslug woolsey.PICTCAPITOL HILL:Support:shareart:
  527. slugwool.PICTPICT
  528. 1515: macslugbaker.PICTCAPITOL HILL:Support:shareart:
  529. slugbake.PICTPICT
  530. 1516: macslugmich.PICTCAPITOL HILL:Support:shareart:
  531. slugmich.PICTPICT
  532. 1517: macslugsmock.PICTCAPITOL HILL:Support:shareart:
  533. slugsmoc.PICTPICT
  534. 1518: macslugkauf.PICTCAPITOL HILL:Support:shareart:
  535. slugkauf.PICTPICT
  536. 1519: macslugforeign.PICTCAPITOL HILL:Support:shareart:
  537. slugfore.PICTPICT
  538. 1520: macslug senate floor.PICTCAPITOL HILL:Support:shareart:
  539. slugsenf.PICTPICT
  540. 1521:  vidwin1.PICTCAPITOL HILL:Support:shareart: vidwin1.PICTPICT
  541. 1522:  vidwin2.PICTCAPITOL HILL:Support:shareart: vidwin2.PICTPICT
  542. 1523: macslug house floor.PICTCAPITOL HILL:Support:shareart:
  543. slughsef.PICTPICT
  544. 1526:  YEACLIP.PICT
  545. 1527:  NAYCLIP.PICT
  546. 1528: 
  547. PRESCLIP.PICT
  548. 1533: 
  549. PDA final.10%
  550. 1534:  SCENIC.PICTCAPITOL HILL:Support:shareart: SCENIC.PICTPICT
  551. 1535:     DASH.PICT
  552. 1536:     DASH.PICT
  553.